<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >

<head>

</head>
<body>
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
  <div class="container">
    <div class="navbar-header">
      <!--<div><a class="navbar-brand" href="index.html" style="font-size:32px;">学习平台</a></div>-->
    </div>
  </div>
</nav>

<div class="container">

  <span>请输入力扣的json数据:</span>
  <textarea id="data" rows="5" cols="200"></textarea>
  <br>
  <input type="button" onclick="dologin()" value="构建数据">
  <br>
  <span style="color: blue">结果信息</span>
  <span id="result" style="color: red ;size: 20px"></span>
</div>
<script src="http://localhost/js/jquery.min.js"></script>
<script>
  function dologin() {
    $.ajax({
      type: "POST",
      contentType: "application/json",
      url: "http://172.16.211.125/letcode",
      data: $("#data").val(),
      beforeSend: function () {
      }, success: function (result) {
        $("#result").text(result)
      }
    });
  }
</script>
</body>
</html>